class CreateJobs < ActiveRecord::Migration
  def self.up
    create_table :jobs do |t|

      t.column :title, :string, :null => false
      t.column :company,:string, :null => false
      t.column :url, :string
      t.column :location, :string, :null => false
      t.column :instructions, :string
      t.column :description, :text,  :null => false

      t.column :user_id, :integer

      t.column :created_at, :datetime
      t.column :updated_at, :datetime

    end
  end

  def self.down
    drop_table :jobs
  end
end
